﻿var PROJECTID, TASKTYPE, TASKPHASE, PERSONID
!function () {
    laydate.skin('danlan');//切换皮肤，请查看skins下面皮肤库
    laydate({ elem: '#demo' });//绑定元素
    laydate({ elem: '#demo1' });
    laydate({ elem: '#demo2' });//绑定元素
}();
function TaskCancel() {
    var index = parent.layer.getFrameIndex(window.name)
    parent.layer.close(index);
}
//时间格式化函数
function getFormatTime(time) {
    var time = new Date(parseInt(time));
    var y = time.getFullYear();
    var m = time.getMonth() + 1;
    var d = time.getDate();
    var h = time.getHours();
    var mm = time.getMinutes();
    var s = time.getSeconds();
    return y + '-' + add0(m) + '-' + add0(d) + ' ' + add0(h) + ':' + add0(mm) + ':' + add0(s);
}
function add0(m) { return m < 10 ? '0' + m : m }
sha'b